#include <stdio.h>


void ee(){
	printf("exit %d\n",getpid());
}

int main(){
	atexit(ee);
	if(fork()==0){
		printf("0: %d\n",getpid());
	}else{
		printf("%d\n",getpid());
	}
}